<?php $form->setDefaults($filter->array); ?>

<?php
	echo jq_form_remote_tag(
		array(
			'url'      => 'sistema/filter',
 			'update'   => 'list'
		),
		array(
			'name' => 'form_filer_sistema',
			'id' => 'form_filer_sistema'
		)
	);
?>

<?php echo input_hidden_tag('filtro', '1'); ?>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
    <tr>
        <th><?php echo $form['id_sistema_pai']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['id_sistema_pai']->render(
        			array(
        				'name' => 'filter[id_sistema_pai]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['nm_sistema']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['nm_sistema']->render(
        			array(
        				'name' => 'filter[nm_sistema]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_sobre']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_sobre']->render(
        			array(
        				'name' => 'filter[ds_sobre]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_servico']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_servico']->render(
        			array(
        				'name' => 'filter[ds_servico]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_twitter']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_twitter']->render(
        			array(
        				'name' => 'filter[ds_twitter]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_facebook']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_facebook']->render(
        			array(
        				'name' => 'filter[ds_facebook]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_youtube']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_youtube']->render(
        			array(
        				'name' => 'filter[ds_youtube]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_flickr']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_flickr']->render(
        			array(
        				'name' => 'filter[ds_flickr]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['ds_orkut']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['ds_orkut']->render(
        			array(
        				'name' => 'filter[ds_orkut]'
        			)
        		)
        	?>
        </td>
    </tr>
	<tr>
		<td colspan="2" align="right">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
    			echo link_to(
    				':: Limpar ::',
    				$sf_context->getModuleName().'/filter',
    				array('class'=>'btn btn-info')
    			);
			?>
		</td>
	</tr>
</table>
</form>